<?php
/**
 * Created by PhpStorm.
 * User: td
 * Date: 15/1/26
 * Time: 下午11:52
 */

namespace Home\Model;
use Think\Model;

class StationModel extends Model{
    protected $tableName = 'station';
    protected $pk        = 'stat_id';

    //获取jobs信息
    public function getJobsInfo(){
        $stat_field = array('stat_id','stat_name','description');
        $stat_order = '`stat_id` asc' ;
        $stat_result = $this->field($stat_field)->order($stat_order)->select();
        if(is_array($stat_result)){
            return $stat_result;
        }else{
            return 0;
        }

    }
} 